package com.yiang.order.feign;

import com.yiang.feign.OrderClient;
import com.yiang.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderFeign implements OrderClient {

    @Autowired
    private OrderService orderService;

    @Override
    public String getOrder() {
        return orderService.list().toString();
    }
}
